package com.cskaoyan.service;

import com.cskaoyan.bean.Ad;
import com.cskaoyan.bean.BaseListData;
import com.cskaoyan.bean.Coupon;
import com.cskaoyan.bean.Groupon_rules;
import com.cskaoyan.model.promote.bo.AdUpdateBO;
import com.cskaoyan.model.promote.bo.CouponCreateBO;
import com.cskaoyan.model.promote.bo.TopicUpdateBO;
import com.cskaoyan.model.promote.vo.AdCreateVO;
import com.cskaoyan.model.promote.vo.CouponCreateVO;
import com.cskaoyan.model.promote.vo.CouponUpdateVO;
import com.cskaoyan.model.promote.vo.GroupOnCreateVO;

import java.util.Date;
import java.util.Map;

public interface PromoteService {
    BaseListData queryAds(Integer page, Integer limit, String sort, String order, String content,String name);

    void updateAds(AdUpdateBO adUpdateBO);

    AdCreateVO createAds(Ad ad);

    void deleteAds(AdUpdateBO ad);

    BaseListData queryCoupons(Integer page, Integer limit, String sort, String order, String name, Short type, Short status);

    void deleteCoupon(Map map);

    CouponCreateVO createCoupon(CouponCreateBO coupon);

    CouponUpdateVO updateCoupon(Coupon coupon);

    Map queryCoupon(Integer id);

    BaseListData queryCouponUsers(Map map);

    BaseListData queryGroupOns(Integer page, Integer limit, String sort, String order, Integer goodsId);

    BaseListData queryTopics(Integer page, Integer limit, String sort, String order, String title, String subtitle);

    TopicUpdateBO updateTopics(TopicUpdateBO updateBo);

    TopicUpdateBO createTopics(Map map);

    void deleteTopics(Map map);

    BaseListData queryGroupOnRules(Integer page, Integer limit, String sort, String order, Integer goodsId);

    void deleteGroupOnRules(Map map);

    GroupOnCreateVO createGroupOnRules(String goodsId, String discount, String discountMember, Date expireTime);

    int updateGroupOnRules(Groupon_rules rules);
}
